package com.example.zlpermissionservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.zlpermissionservice.entity.RoleResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author zhenliu（孙凌岳）
 * @Description AI生成
 * @Date 2025/6/17 21:16
 * @Version 1.0
 */
@Mapper
public interface RoleResourceMapper extends BaseMapper<RoleResource> {

    /**
     * 查询菜单使用数量
     *
     * @param menuId 菜单ID
     * @return 结果
     */
    int checkMenuExistRole(@Param("menuId")String menuId);
}
